package com.hundsun.fcp.webplugin.util;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class NetWorkUtil {
	/**
	 * 判断网络是否连接
	 * @param pContext
	 * @return
	 */
	public static boolean isConnected(Context pContext) {
		NetworkInfo _NetworkInfo = ((ConnectivityManager) pContext
				.getSystemService("connectivity")).getActiveNetworkInfo();
		return (_NetworkInfo != null) && (_NetworkInfo.isConnected());
	}
}
